package palf.menuItems {
import palf.commands.Command;

public class MenuItemFactory {

	public function MenuItemFactory() {

	}

	public function createMenuLabel(label : String) : MenuLabel {
		return new MenuLabel(label);
	}

	public function createMenuButton(label : String, command : Command) : MenuButton {
		return new MenuButton(label, command);
	}

	private var divider : MenuDivider;

	public function createMenuDivider() : MenuDivider {
		if (!divider) {
			divider = new MenuDivider();
		}
		return divider;
	}

}
}
